package com.agile.leetcode.designmodel.decorator;

/**
 * @Author KD
 * @Date 2021/1/11 16:46
 */
public class ConcrateDecorator1 extends Decorator {
    public ConcrateDecorator1(IPerson iPerson) {
        super(iPerson);
    }

    @Override
    public void show() {
        // 执行已有的功能
        super.show();
        // 定义新行为
        System.out.println("买牛奶");
    }
}
